/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package di.persistence.entities;

import di.persistence.entities.interfaces.IEntity;
import java.io.Serializable;
import javax.persistence.*;

/**
 *
 * @author Kilian Ito
 */
@Entity
public class Area extends Position {
    private static final long serialVersionUID = 1L;
    
    protected Float radius;

    public Float getRadius() {
        return radius;
    }

    public void setRadius(Float radius) {
        this.radius = radius;
    }
    
    
    

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Area)) {
            return false;
        }
        Area other = (Area) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return super.toString()+ "; " + "radius:" + getRadius();
    }
    
}
